<template>
  <div class="region-stats-form">
    <el-alert
      title="区域企业统计功能可以帮您了解各省份企业的分布情况、员工数量、注册资本和高新技术企业数量等关键指标"
      type="info"
      :closable="false"
      style="margin-bottom: 20px;"
    />

    <div style="text-align: center; margin-top: 30px;">
      <el-button 
        type="primary" 
        @click="handleQuery" 
        class="query-button" 
        :loading="loading"
      >
        <el-icon><Search /></el-icon> 查询统计
      </el-button>
    </div>
  </div>
</template>

<script>
import { Search } from '@element-plus/icons-vue';

export default {
  name: 'RegionStatsForm',
  components: {
    Search
  },
  props: {
    loading: {
      type: Boolean,
      default: false
    }
  },
  emits: ['query'],
  setup(props, { emit }) {
    const handleQuery = () => {
      emit('query');
    };

    return {
      handleQuery
    };
  }
};
</script>

<style scoped>
.region-stats-form {
  padding: 20px;
}

.query-button {
  min-width: 120px;
  padding: 10px 24px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 auto;
}
</style> 